An Expected-Cost Analysis of Backtracking and Non-Backtracking Algorithms

نویسندگان

  • Colin McDiarmid
  • Gregory M. Provan
چکیده

Consider an infinite binary search tree in which the branches have independent random costs. Suppose that we must find an optimal (cheapest) or nearly optimal path from the root to a node at depth n. Karp and Pearl [1983] show that a bounded-lookahead backtracking algorithm A2 usually finds a nearly optimal path in linear expected time (when the costs take only the values 0 or 1). From this successful performance one might conclude that similar heuristics should be of more general use. But we find here equal success for a simpler non-backtracking bounded-lookahead algorithm , so the search model cannot support this conclusion. If, however, the search tree is generated by a branching process so that there is a possibility of nodes having no sons (or branches having prohibitive costs), then the non-backtracking algorithm is hopeless while the backtracking algorithm still performs very well. These results suggest the general guideline that backtracking becomes attractive when there is the possibility of "dead-ends" or prohibitively costly outcomes. 1 INTRODUCTION Many algorithms considered in operations research, computer science and artificial intelligence may be represented as searches or partial searches through rooted trees. Such algorithms typically involve backtracking but try to minimize the time spent doing so (e.g. for some problems it may be best to avoid backtracking [de Kleer, 1984]. The paper extends work of [Karp and Pearl, 1983], and gives a probabilistic analysis of backtracking and non-backtracking search algorithms in certain trees with random branch costs. We thus cast some light on the question of when to backtrack: it seems that backtrack-ing is valuable just for problems with "dead-ends" (or outcomes with prohibitively high costs). Let us review briefly the model and results of Karp and Pearl [1983]. They consider an infinite search tree in which each node has exactly two sons. The branches have independent (0, l)-valued random costs X, with p = P(X = 0). 1 The problem is to find an optimal (cheapest) or nearly optimal path from the root to a node at depth n. The problem changes nature depending on whether the expected number 2p of zero-cost branches leaving a node is > 1, = 1 or < 1. When 2p > 1 a simple uniform cost breadth-first search algorithm Al finds an optimal solution in expected time O(n); and when 2p = 1 this algorithm takes expected time 0(n 2). When 2p < 1 any algorithm …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Incomplete Dynamic Backtracking for Linear Pseudo-Boolean Problems

Many combinatorial problems can be modeled as 0/1 integer linear programs. Problems expressed in this form are usually solved by Operations Research algorithms, but good results have also been obtained using generalised SAT algorithms based on backtracking or local search, after transformation to pseudo-Boolean form. A third class of SAT algorithm uses non-systematic backtracking to combine con...

متن کامل

Bilateral Teleoperation Systems Using Backtracking Search optimization Algorithm Based Iterative Learning Control

This paper deals with the application of Iterative Learning Control (ILC) to further improve the performance of teleoperation systems based on Smith predictor. The goal is to achieve robust stability and optimal transparency for these systems. The proposed control structure make the slave manipulator follow the master in spite of uncertainties in time delay in communication channel and model pa...

متن کامل

Quantum walk speedup of backtracking algorithms

We describe a general method to obtain quantum speedups of classical algorithms which are based on the technique of backtracking, a standard approach for solving constraint satisfaction problems (CSPs). Backtracking algorithms explore a tree whose vertices are partial solutions to a CSP in an attempt to find a complete solution. Assume there is a classical backtracking algorithm which finds a s...

متن کامل

On Backtracking in Real-time Heuristic Search

Real-time heuristic search algorithms are suitable for situated agents that need to make their decisions in constant time. Since the original work by Korf nearly two decades ago, numerous extensions have been suggested. One of the most intriguing extensions is the idea of backtracking wherein the agent decides to return to a previously visited state as opposed to moving forward greedily. This i...

متن کامل

Randomised Backtracking for Linear Pseudo-Boolean Constraint Problems

Many constraint satisfaction and optimisation problems can be expressed using linear constraints on pseudo-Boolean (0/1) variables. Problems expressed in this form are usually solved by integer programming techniques, but good results have also been obtained using generalisations of SAT algorithms based on both backtracking and local search. A recent class of algorithm uses randomised backtrack...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1991